﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace bonus.Models
{
	public class WebConfig
	{
		/// <summary>
		/// cook名称
		/// </summary>
		public static string USERCOOKIE = "jiangjin";

		/// <summary>
		/// 新消息cook名称
		/// </summary>
		public static string MSGCOOKIE = "NewMsg";

		/// <summary>
		/// 秘钥
		/// </summary>
		public static string KEY = "xitong";

		/// <summary>
		/// 编码
		/// </summary>
		public static string UFT8 = "utf-8".Trim().ToLower();

		/// <summary>
		/// 服务中心管理费
		/// </summary>
		public static decimal FUWUZHONGXINGUANLIFEI = 0.04M;

		/// <summary>
		/// 服务中心物流津贴
		/// </summary>
		public static decimal FUWUZHONGXINWULIU = 0.01M;

		/// <summary>
		/// 公司管理费
		/// </summary>
		public static decimal GONGSHIGUANLIFEI = 0.04M;

		/// <summary>
		/// 公司物流津贴
		/// </summary>
		public static decimal GONGSHIWULIU = 0.01M;

		/// <summary>
		/// 只有公司管理费
		/// </summary>
		public static decimal ZHIYOUGONGSHIGUANLIFEI = 0.08M;

		/// <summary>
		/// 只有公司物流津贴
		/// </summary>
		public static decimal ZHIYOUGONGSHIWULIU= 0.02M;

		/// <summary>
		/// 分类及对应的比例
		/// </summary>
		public static Dictionary<int, decimal> ZHITUIJIANG = new Dictionary<int, decimal>{
	{Models.User.LevelClass.STUDENT,0.19M},{Models.User.LevelClass.JIANXI,0.24M},{Models.User.LevelClass.ZHIDAO,0.30M},{Models.User.LevelClass.LAOSHI,0.36M},{Models.User.LevelClass.DAOSHI,0.46M},{Models.User.LevelClass.YUANSHI,0.55M}};

		/// <summary>
		/// 等级对应点数
		/// </summary>
		public static Dictionary<int, string>DENGJIDIANSHU = new Dictionary<int, string>{
	{Models.User.LevelClass.STUDENT,"0"},{Models.User.LevelClass.JIANXI,"30000"},{Models.User.LevelClass.ZHIDAO,"90000"},{Models.User.LevelClass.LAOSHI,"300000"},{Models.User.LevelClass.DAOSHI,"3000000"},{Models.User.LevelClass.YUANSHI,"12000000"}};

	}
}